<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<form id="form1" name="form1" method="post" action="">
<h1>
PLEASE SCAN BARCODE HERE
  <input type="hidden" name="str_res" id="str_res" value="<?php echo $this->strRes;?>"  />
<input type="text" name="barcode" id="barcode" style="width:200px; font-size:28px;" />
  <input type="submit" name="button" id="button" value="Submit" />
  <br />
  <br />
  After Scaned Into The System, It means you have received<br />
  The Signed Roster From The Staff.<br />
  <br />
  If you scan Twice, don't worry<br />
  If you can NOT scan , Type The Barcode In field Then Press Submit.</h1>
<script language="javascript">
    document.getElementById('barcode').focus(); 
    </script>  
</form>
<table width="600" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">Staff</th>
    <th scope="col">Cycle</th>
    <th scope="col">Year</th>
    <th scope="col">Scan Time</th>
  </tr>
<?php 
foreach((array)$this->arrRes as $k => $v) {?>  
  <tr>
    <td>[<?php echo $v[0]?>] <?php echo $v[1]?> (<?php echo $v[2]?>) </td>
    <td><?php echo $v[3]?></td>
    <td><?php echo $v[5]?></td>
    <td><?php echo $v[4]?></td>
  </tr>
<?php }?>  
</table>
</body>
</html>
